package com.scf.loanmanage.service.ServiceImp;

import com.scf.loanmanage.dao.CollectionRecordsMapper;
import com.scf.loanmanage.entity.CollectionRecords;
import com.scf.loanmanage.service.CollectionRecordsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class CollectionRecordsImpl implements CollectionRecordsService {

    @Resource
    CollectionRecordsMapper collectionRecordsMapper;
    @Override
    public void insert(Integer crid, Date time, String manner, String content, Integer oid) {
        collectionRecordsMapper.insert(crid, time, manner, content, oid);
    }

    @Override
    public Integer selectcount(Integer oid) {
        return collectionRecordsMapper.selectcount(oid);
    }

    @Override
    public CollectionRecords selctByid(Date time) {
        return collectionRecordsMapper.selctByid(time);
    }


}
